package org.wj.config

import org.apache.spark.{SparkConf, SparkContext}

trait LocalSparkContext extends App {

  val conf: SparkConf = new SparkConf().setMaster("local").setAppName(super.getClass.getName)

  val sc = new SparkContext(conf)

  abstract override def main(args: Array[String]): Unit = {
    super.main(args)
    sc.stop()
  }

}
